package com.farmer.reliablemessage.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * @author tech-famer
 * @ClassName: ReliableMessage
 * @Description: (这里用一句话描述这个类的作用)
 * @date 2021/10/29 17:35
 */
@Entity
@Table(name = "reliablemessage")
public class ReliableMessage {

    @Id
    private String msgid;
    @Column(columnDefinition="text")
    private String payload;
    private Timestamp createtime;
    private Timestamp freetime;
    private Timestamp nexttime;
    private String owner;
    private Integer status;
    private Integer failtimes;
    private Integer failreason;
    private String source;
    private String routingkey;
    private String exchange;
    private Timestamp sendtime;

    public String getMsgid() {
        return msgid;
    }

    public void setMsgid(String msgid) {
        this.msgid = msgid;
    }

    public String getPayload() {
        return payload;
    }

    public void setPayload(String payload) {
        this.payload = payload;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    public Timestamp getFreetime() {
        return freetime;
    }

    public void setFreetime(Timestamp freetime) {
        this.freetime = freetime;
    }

    public Timestamp getNexttime() {
        return nexttime;
    }

    public void setNexttime(Timestamp nexttime) {
        this.nexttime = nexttime;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getFailtimes() {
        return failtimes;
    }

    public void setFailtimes(Integer failtimes) {
        this.failtimes = failtimes;
    }

    public Integer getFailreason() {
        return failreason;
    }

    public void setFailreason(Integer failreason) {
        this.failreason = failreason;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getRoutingkey() {
        return routingkey;
    }

    public void setRoutingkey(String routingkey) {
        this.routingkey = routingkey;
    }

    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange;
    }

    public Timestamp getSendtime() {
        return sendtime;
    }

    public void setSendtime(Timestamp sendtime) {
        this.sendtime = sendtime;
    }
}
